package com.enjoy.concurrent.ch5;

import java.util.HashMap;
import java.util.Map;

/**
 * -XX:hashCode=2
 */
public class HashMapTest {
    public static void main(String[] args) throws InterruptedException {
        Map<Object, Object> map = new HashMap<>(64);

        map.put(new A(), "aa");
        map.put(new A(), "bb");
        map.put(new A(), "cc");
        map.put(new A(), "dd");
        map.put(new A(), "ee");
        map.put(new A(), "ff");
        map.put(new A(), "gg");
        map.put(new A(), "hh");
        map.put(new A(), "ii");
        map.put(new A(), "jj");

        Thread.sleep(Integer.MAX_VALUE);
    }

    private static class A {

    }
}
